<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Edit a Driver</title>
    </h:head>
    <h:body>
        <f:view>
            <h:form>
                <h:panelGrid border="1" columns="2">
                    <f:facet name="header">
                        <h:outputText value="Enter your information"/>
                    </f:facet>
                    <h:outputText value="Driver Name"/>
                    <h:inputText value="#{driver.editableDriver.name}"/>
                    <h:outputText value="Driver E-Mail"/>
                    <h:inputText value="#{driver.editableDriver.email}"/>
                    <h:outputText value="Driver Phone Number"/>
                    <h:inputText value="#{driver.editableDriver.phoneNumber}"/>
                </h:panelGrid>
                <br/>
                <h:commandButton value="Edit Time Slots" action="timeSlotListDriver" />
                <br/>
                <h:commandButton value="Save" action="#{driver.editableDriver.saveDriver}" />
                <br/>
                <h:commandButton value="Cancel" action="driverList" />
            </h:form>
        </f:view>
    </h:body>
</html>

